<!--筛查个体选项卡-->

<script setup>

</script>

<template>
  <div>
    <div class="add-main border_">
      <div class="add-main-body">
        <!--        这里可以自定义图标-->
        <van-button type="primary" class="add-button">
          <slot name="icon" id="icons"/>
        </van-button>
        <div class="add-info">
          <!--  这里可以自定义内容-->
          <div class="add-info-title">
            <span>
              <slot name="content"/>
            </span>
          </div>
          <div id="icon-arrow">
            <van-icon name="arrow"/>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">

.border_ {
  border: 1.2px solid #d4d4d4;
  border-radius: 4px;
}

.border_:hover {
  border: 2px solid #00d1ae;
}

.add-main {
  display: flex;
  align-items: center;
  width: 84%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 1rem;
  height: 5rem;
  background: #ffffff;
}

.add-main-body {
  display: flex;
  align-items: center;
  width: 85%;
  height: 3.3rem;
  margin: 0 auto;
}

.add-button {
  border-radius: 35px;
  width: 15%;
  height: 80%;
  background-image: linear-gradient(#00de91, #01ccc4);
  font-size: 2rem;
}

.add-info {
  display: flex;
  align-items: center;
  margin-left: 15px;

  & .add-info-title {
    width: 14.2rem;
    // 不允许换行
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    & span {
      font-size: 1.2rem;
      font-weight: 500;
    }
  }

  // 右侧对齐
  & #icon-arrow {
    display: flex;
    justify-content: flex-end;
  }
}

.add-info-warn {
  margin-left: 10rem;
  font-size: 15px;
  font-weight: 900;
  color: #453cca;
}

</style>